﻿namespace Longbow.Cache
{
    /// <summary>
    /// CacheItem 配置接口
    /// </summary>
    public interface ICacheItem
    {
        /// <summary>
        /// 获得/设置 缓存键值
        /// </summary>
        string Key { get; set; }

        /// <summary>
        /// 获得/设置 缓存值
        /// </summary>
        string Value { get; set; }

        /// <summary>
        /// 获得/设置 缓存时长
        /// </summary>
        int Interval { get; set; }

        /// <summary>
        /// 获得/设置 缓存描述
        /// </summary>
        string Desc { get; set; }

        /// <summary>
        /// 获得/设置 缓存已用时长
        /// </summary>
        int ElapsedSeconds { get; set; }
    }
}
